package xml;

import java.io.*;

public class DocumentXML {
	protected TagXML radacina=null;
	public boolean hasInstance= false;
	public File f=null;
	public DocumentXML instance=null;
	
	private DocumentXML(TagXML radacina, String filename) {
        if(!this.hasInstance)    
        {    
            this.radacina = radacina;
            this.f = new File(filename);
        }    
        else
        	System.out.println("Nu se mai poate crea un nou fisier.");
	}

	public TagXML getRadacina() {
		return radacina;
	}

	public void setRadacina(TagXML radacina) {
		this.radacina = radacina;
	}

	public DocumentXML getInstance() {
		return instance;
	}
	public void setXMLFile(String filename)
	{
		File ff=new File(filename);
		f=ff;
	}
	public File getXMLFile()
	{
		return f;
	}

	
	
	
	
	
}
